package cool.taomu.toolkit.rpc.thrift.server.module

import com.google.inject.AbstractModule
import com.google.inject.TypeLiteral
import cool.taomu.toolkit.rpc.thrift.server.provider.ThritfTHsHaArgsProvider
import java.util.Map
import org.apache.thrift.server.THsHaServer.Args

class ThritfTHsHaServerModule extends AbstractModule {

	override configure() {
		bind(new TypeLiteral<Map<String, Args>>() {
		}).toProvider(ThritfTHsHaArgsProvider).asEagerSingleton;
	}
}
